package com.hncu.edu.info.manager.controller;


import com.hncu.edu.info.manager.domain.Teacher;

public class OtherTeacherController extends BaseTeacherController{

    //信息录入与封装
    @Override
    public Teacher getTeacher(String Id) {
        //完善其他信息
        System.out.println("请输入姓名：");
        String name = in.next();
        System.out.println("请输入年龄：");
        String age = in.next();
        System.out.println("请输入生日：");
        String birthday = in.next();
        //封装为对象
        Teacher teacher = new Teacher(Id,name,age,birthday);
        return teacher;
    }
}
